package cn.stronglink.asset.module.inventory.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.plugins.Page;

import cn.stronglink.asset.module.inventory.mapper.InventorySheetMapper;
import cn.stronglink.asset.module.inventory.vo.InventorySheetVo;

@Service
@Transactional(rollbackFor=Exception.class) 
public class InventorySheetService {

	@Autowired
	private InventorySheetMapper inventorySheetMapper;

	@Transactional(propagation=Propagation.NOT_SUPPORTED,readOnly=true)
	public Page<InventorySheetVo> queryList(Page<InventorySheetVo> page, Map<String, Object> params) {
		List<InventorySheetVo> list =inventorySheetMapper.queryList(page,params);
		page.setRecords(list);
		return page;	
	}

}
